
<?php require "header.php"; ?>
<link href="<?php echo MAIN_URL;?>css/style.css" type="text/css" rel="stylesheet">
<body>
<?php require "menu.php"; ?>
            <!--Banner start here-->
            <div class="banner">
                <div class="banner_inner">
                	<img src="<?php echo MAIN_URL;?>images/banner.jpg" alt="">
                </div>
            <!--Banner end here-->    
            </div>
            <!--Content start here-->
            <div class="content">
            	
                <!-- content bottom-->
                <div class="content_bottom mar_top0">
                	<!-- content left -->
                	<div class="content_left">


               <script>
                 $(document).ready(function(){ 
	  
                $("#r_button").click(function() {
					$(".errors").hide();
					$("#response").hide();
				   $("input.common").css("background", "#FFFFFF");
				});
           $("#s_button").click(function() {
                $(".errors").hide();
				$("#response").hide();
                var fname=$("#fname").val();
                var lname=$("#lname").val();
				var email=$("#email").val();
                var contactno=$("#contactno").val();
				var comments=$("#comments").val();
                      if(fname=="")
			          {
                      $("#fname").css("background", "#DB5C04");
					  $("#fname").focus();
					  return false;
			          }
					  else{
						  $("#fname").css("background", "#FFFFFF");
						  }
					  if(lname=="")
			          {
                      $("#lname").css("background", "#DB5C04");
					  $("#lname").focus();
					  return false;
			          }else{
						  $("#lname").css("background", "#FFFFFF");
						  }
                    var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; 
      
                     if(email=="")
			          {
                      $("#email").css("background", "#DB5C04");
					  $("#email").focus();
					  return false;
			          }
                         else if(!emailPattern.test(email)){  
       
                          $("#emailError").show();
                           $("#email").css("background", "#DB5C04");
					      $("#email").focus();
                           return false;
                              }else{
						  $("#email").css("background", "#FFFFFF");
						  }
                if(comments=="")
			          {
                      $("#comments").css("background", "#DB5C04");
					  $("#comments").focus();
					  return false;
			          }else{
						  $("#comments").css("background", "#FFFFFF");
						  }
	      

               });
			
			 });
	 
</script>
          <h4 class="heading">Contact Us</h4>
                        <p class="gray_heading">You can contact us through Phone or e-mail.</p>
                    	<p>Please fill the following details if you have certain queries. we will revert you soon.</p>
                        
      <form name="login" class="loginForm" action="<?php echo MAIN_URL;?>index.php/contact/contactus" method="post">


           <div style="height: 40px; width:10px">
           <label id="emailError" style="display:none; color:red; font-size: 12px;" class="errors">Email id not valid
           </label>
           </div>
		                    <label>First Name*</label>
                        	<input type="text" id="fname" name="fname" class="common">
                            <label>Last Name*</label>
                        	<input type="text" id="lname" name="lname" class="common">
                            <label>Email*</label>
                        	<input type="text" id="email" name="email" class="common">
                            <label>Contact No.</label>
                        	<input type="text" id="contactno" name="contactno" class="common">
                            <label>Comments*</label>
                        	<input type="text" id="comments" name="comments" class="common">
                            <input value="Clear" type="reset" id="r_button">
							<input value="Submit" type="submit" id="s_button">
							<div id="response" style="color:#04739D;">
							

							<?php
                  if($this->session->flashdata('contact_response')){

					 //echo $this->session->flashdata('contact_response');
               echo "<label style='float: left; margin-top: 12px;width: 171px; font-size: 16px;'>
				 Thanks for contacting us</label>";
							}
	  
                    
				   if($this->session->flashdata('contact_error'))
                  {
                  echo "<label style='float: left; margin-top: 12px;width: 171px; font-size: 16px;'>
				  Some error occurs Please try later thanks</label>";
	              
	  
                   }
				   
				   ?></div>
                        </form>
                        
                    <!-- end content left -->
                    </div>
                    <!-- content right -->
                    <div class="content_right">
                    	<h4 class="heading">Our best teachers</h4>
                    	<div class="sem">
                        	<img src="<?php echo MAIN_URL;?>images/sem_teach1.png" alt="teacher">
                            <p>Study that improves your Knowledge and Personality </p>
                            <p><strong>Lory bright</strong></p> 
                        </div>
                        <div class="sem last">
                        	<img src="<?php echo MAIN_URL;?>images/sem_teach2.png" alt="teacher">
                            <p>Practical Knowledge is the thing that Industry looks always</p>
                            <p><strong>Lory bright</strong></p> 
                        </div>
                    <!--end content right -->
                    </div>
                    <div class="clear"></div>
                <!--end content bottom -->
                </div>
                
                <div class="clear"></div>
            <!--Content end here-->
            </div>
            
           
             <?php
			 require "footer.php";
			 ?>
            </body></html>